|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.io.XMLReader
public abstract class XMLReader
| Constructor Summary | |
|---|---|
XMLReader()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
for testing |
static org.w3c.dom.Document |
parseFile(java.io.File f)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static org.w3c.dom.Element |
parseXMLString(java.lang.String xml)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReader()
| Method Detail |
|---|
public static org.w3c.dom.Document parseFile(java.io.File f)
throws org.xml.sax.SAXException,
java.io.IOException
org.w3c.dom.Document
f - An XML file to be read
org.xml.sax.SAXException
java.io.IOException
public static org.w3c.dom.Element parseXMLString(java.lang.String xml)
throws org.xml.sax.SAXException,
java.io.IOException
xml - A string that represents an XML element (e.g. <mytag
size="42"/>)
org.xml.sax.SAXException - Thrown if the XML has a syntax error
java.io.IOException - Thrown is there was an error while reading the
string's characterspublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||